<?php

use_helper( 'Number' );
use_helper( 'Text' );

?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">

<head>
        <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
        <?php include_http_metas() ?>
    <?php include_metas() ?>
        <link rel="shortcut icon" href="/favicon.ico" />
    <?php include_stylesheets() ?>
    <?php include_javascripts() ?>
        <title><?php include_slot('title', i18n( 'toolbase-header-title' ) ) ?></title>
</head>

<body>
        <div class="wrapper">
                <div class="header_bar">
                        <span style="font-size:125%;"><a href="<?php echo url_for('homepage') ?>" style="text-decoration:none;"><span style="color:#fff;"><?php echo i18n( 'toolbase-header-title' ) ?></span></a></span> &#183;
                        <a href="https://en.wikipedia.org/wiki/User:Cyberpower678/Bugs"><?php echo i18n( 'toolbase-header-bugs' ) ?></a> &#183;
                        <a href="http://twitter.com/soxred93tools"><?php echo i18n( 'toolbase-header-twitter' ) ?></a>
                </div>
                <div class="main_content">

                        <table class="content_table" style="width:100%;">
                                <tr>
                                        <td class="content_box main_box">
                                                <h2 class="green head"><?php include_slot('header', i18n( 'toolbase-header-title' ) ) ?></h2>
                                               
                                                <?php if ($sf_user->hasFlash('notice')): ?>
<h2 class="teal head"><?php echo $sf_user->getFlash('notice') ?></h2>
                                                <?php endif; ?>
                                               
                                                <?php
                                               
                                                $sn = ToolbaseSitenotice::html();
                                               
                                                if( $sn ) {
                                                        echo sprintf( '<h2 class="teal head">%s</h2>', i18n( 'toolbase-header-sitenotice', $sn ) );
                                                }
                                               
                                                ?>
                                               
                                                <?php if ($sf_user->hasFlash('error')): ?>
<h2 class="red head"><?php echo $sf_user->getFlash('error') ?></h2>
                                                <?php endif; ?>
                                               
                                                <?php if ( has_slot( 'replag' )) { ?>
<h2 class="red head"><?php

echo i18n( 'toolbase-replag', get_slot('replag') );

?></h2>
                                                <?php } ?>
                                               
                                                <?php if ( isset( $notice ) ): ?>
<h2 class="teal head"><?php echo $notice ?></h2>
                                                <?php endif; ?>
                                               
                                                <?php if ( isset( $error ) ): ?>
<h2 class="red head"><?php echo $error ?></h2>
                                                <?php endif; ?>
                                               
                                                <div id="sf_content"><?php echo $sf_content ?></div>
                                               
                                                <hr />
                                                <?php echo i18n( 'toolbase-footer-exectime', number_format( ( microtime(1) - INITTIME ), 2 ) ) ?>
                                        </td>
                                        <td class="content_box nav_box">
                                                <h2 class="green head"><?php echo i18n( 'toolbase-navigation' ) ?></h2>
                                                <ul>
                                                        <li><?php echo link_to( i18n( 'toolbase-navigation-homepage' ), '@homepage' ) ?></li>
                                                        <li><?php echo link_to( i18n( 'toolbase-navigation-user_id' ), '@user_id' ) ?></li>
                                                        <li><?php echo i18n( 'toolbase-navigation-api' ) ?></li>
                                                </ul>


                                        </td>
                                </tr>
                        </table>
                </div>
               
               
                <div class="footer">
                        <div class="footer_left">
                                &#169; 2011 <a href="https://en.wikipedia.org/wiki/User:Cyberpower678">Cyberpower678</a><br />
                               
                                <?php echo link_to( i18n( 'toolbase-footer-source' ), 'http://code.google.com/p/cybertools1/source/browse/trunk/web/toolbase' ); ?><br />
                               
                                <a href="http://validator.w3.org/check?uri=referer"><img src="<?php echo image_path( 'xhtml.png' ) ?>" alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a>
                                <a href="http://anybrowser.org/campaign"><img src="<?php echo image_path( 'anybrowser.png' ) ?>" alt="AnyBrowser compliant" /></a>
                                <a href="http://toolserver.org"><img src="<?php echo image_path( 'toolserver.png' ) ?>" alt="Powered by WMF Toolserver" /></a>
                                <a href="http://symfony-project.org"><img src="<?php echo image_path( 'symfony.png' ) ?>" alt="Powered by symfony" /></a>
                       
                                <?php include_component('language', 'language') ?>
                        </div>
                       
                </div>
        </div>
<script type="text/javascript">if (window.runOnloadHook) runOnloadHook();</script>

</body>

</html>

